import { defineComponent as h, ref as m, resolveComponent as T, openBlock as v, createElementBlock as S, createElementVNode as i, createVNode as p, mergeProps as u } from "vue";
const g = { class: "container" }, V = { class: "start" }, _ = /* @__PURE__ */ h({
  __name: "index",
  props: {
    startPlaceholder: { default: "开始时间" },
    endPlaceholder: { default: "结束时间" },
    startTimeStart: { default: "08:00" },
    startTimeEnd: { default: "24:00" },
    endTimeStart: { default: "08:00" },
    endTimeEnd: { default: "24:00" },
    startStep: { default: "00:15" },
    endStep: { default: "00:15" }
  },
  emits: ["startTimeHandle", "endTimeHandle"],
  setup(a, { emit: d }) {
    let l = d;
    const t = m(""), n = m(""), c = (e) => {
      console.log("开始时间", e), t.value = e, l("startTimeHandle", e);
    }, f = (e) => {
      console.log("结束时间", e), n.value = e, l("endTimeHandle", e);
    };
    return (e, o) => {
      const r = T("el-time-select");
      return v(), S("div", g, [
        i("div", V, [
          p(r, u({
            modelValue: t.value,
            "onUpdate:modelValue": o[0] || (o[0] = (s) => t.value = s),
            "max-time": n.value,
            class: "mr-4",
            placeholder: e.startPlaceholder,
            start: e.startTimeStart,
            step: e.startStep,
            end: e.startTimeEnd,
            onChange: c
          }, e.$attrs.startOptions), null, 16, ["modelValue", "max-time", "placeholder", "start", "step", "end"])
        ]),
        i("div", null, [
          p(r, u({
            modelValue: n.value,
            "onUpdate:modelValue": o[1] || (o[1] = (s) => n.value = s),
            "min-time": t.value,
            placeholder: e.endPlaceholder,
            start: e.endTimeStart,
            step: e.endStep,
            end: e.endTimeEnd,
            onChange: f
          }, e.$attrs.endOptions), null, 16, ["modelValue", "min-time", "placeholder", "start", "step", "end"])
        ])
      ]);
    };
  }
}), E = (a, d) => {
  const l = a.__vccOpts || a;
  for (const [t, n] of d)
    l[t] = n;
  return l;
}, C = /* @__PURE__ */ E(_, [["__scopeId", "data-v-4d426cce"]]), H = {
  install(a) {
    a.component("m-choose-time", C);
  }
};
export {
  H as default
};
